<script>
import { ref } from 'vue'
export default { name: 'XtxSpin' }
</script>

<script setup>
import { NSpin } from 'naive-ui'
const isShow = ref(true)
</script>

<template>
  <div class="card">
    <!-- 加载 -->
    <n-spin v-if="isShow" class="spin">
      <template #description>每个想要学习的念头，都有可能是未来的你在向你求救。</template>
    </n-spin>
  </div>
</template>

<style lang="less" scoped>
.card {
  width: 1240px;
  height: 600px;
  background-color: #fff;
  margin: 30px auto;
  display: flex;
  justify-content: center;
  align-items: center;
}
</style>
